#define _CRT_SECURE_NO_WARNINGS 1

#include "SeqList.h"

void TestSL1()
{
	SL s;

	SLInit(&s);

	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushBack(&s, 6);
	SLPushBack(&s, 6);

	SLPrint(&s);

	SLDestroy(&s);
}

void TestSL2()
{
	SL s;

	SLInit(&s);

	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushBack(&s, 6);
	SLPushFront(&s, 6);
	SLPushFront(&s, 8);
	SLPushFront(&s, 7);
	SLPopBack(&s);
	SLPopFront(&s);
	SLInsert(&s, 4, 123);
	SLErase(&s, 4);
	SLModify(&s, SLFind(&s, 6), 223);

	SLPrint(&s);



	SLDestroy(&s);
}

int main()
{
	//TestSL1();
	TestSL2();

	return 0;
}